const path=require('path');
const url=require('url');
const fs=require('fs');
const http=require('http');

const server = http.createServer();
server.on('request',(req,res)=>{

  res.end(fs.readFileSync(path.join(__dirname,'www','index.html')))
})

server.listen(3000,'0.0.0.0',()=>{
  console.log('服务器已启动 http://localhost:3000')
})